package IO流;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileCopy {
    public static void main(String[] args) throws IOException {
        long start = System.currentTimeMillis();
        FileInputStream fis = new FileInputStream("C:\\Users\\gdq\\OneDrive\\桌面\\File文件夹\\体育课QQ录屏.mp4");
        FileOutputStream fos = new FileOutputStream("C:\\Users\\gdq\\OneDrive\\桌面\\File文件夹\\copy.mp4");
        int b;
        while ((b = fis.read())!=-1){
            fos.write(b);
        }
        fis.close();
        fos.close();
        long end = System.currentTimeMillis();
        System.out.println((end - start)/1000);
    }
}
